<template>
  <div class="order-checked-main">
    <div class="header-main">
      <span @click="goBack"><van-icon name="arrow-left" /></span>
      <div class="center">确认订单</div>
    </div>
    <div class="order-main">
      <div  class="chose-address">
        <span>
           <van-icon size="24" name="location-o" />
            <span>收获地址</span>
        </span>
        <van-icon  name="arrow" />
      </div>
      <div v-if="false" class="get-address">
        <div class="left">
          <van-icon style="margin-top: 15px" size="28" name="location-o" />
          <div class="left-address">
            <p>lishang 1|2313213</p>
            <p>13012341234</p>
          </div>
        </div>
        <van-icon  name="arrow" />
      </div>
      <div class="chose">
        <van-checkbox  checked-color="#002FFF" icon-size="16px" v-model="checked">outdoor explorer</van-checkbox>
      </div>
      <div class="product">
        <div class="left">
          <van-checkbox  checked-color="#002FFF" icon-size="16px" v-model="checked"></van-checkbox>
        </div>
        <div class="right">
          <img src="../../assets/image/81XJTc4MT4L._AC_UL1500_.jpg" alt="">
          <div class="info">
            <p> KwikSafety（北卡罗来纳州夏洛特 THUNDER 防坠落安全带（带 3 个 ... </p>
            <p>
              <span class="money">$ 152.00</span>
              <van-stepper  input-width="30px" button-size="22px" v-model="value" />
            </p>
          </div>
        </div>
      </div>

      <div class="product-info">
        <van-cell-group :border="false">
          <van-cell>
            <template slot="title">
              <span class="label">物品金额</span>
            </template>
            <template #right-icon>
              <span class="right" style="color: #aaa">$152</span>
            </template>
          </van-cell>
          <van-cell>
            <template slot="title">
              <span class="label">运送费</span>
            </template>
            <template #right-icon>
              <span class="right" style="color: #002FFF">$152</span>
            </template>
          </van-cell>
          <van-cell>
            <template slot="title">
              <span class="label">税费</span>
            </template>
            <template #right-icon>
              <span class="right" style="color: #002FFF">$152</span>
            </template>
          </van-cell>
          <van-cell>
            <template slot="title">
              <span class="label">总计</span>
            </template>
            <template #right-icon>
              <span class="right" style="color: #002FFF">$152</span>
            </template>
          </van-cell>

        </van-cell-group>
      </div>
    </div>
    <div class="safe"></div>
    <div class="submit-bottom">
      <span>总计：<b>$152.00</b></span>
      <span>选择：<b>1</b>个</span>
      <button @click="$router.push('/pay')">确定</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "index",
  data(){
    return{
      checked:true,
      value:1
    }
  },
  methods:{
    goBack(){
      this.$router.go(-1)
    },
  }
}
</script>

<style scoped lang="scss">
.order-checked-main{
  width: 100%;
  background: #f6f6f6;
  min-height: 100vh;

  .header-main{
    width: 100%;
    height: 45px;
    padding: 15px 0 0 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
    span{
      position: absolute;
      left: 20px;
      font-size: 18px;
    }
    .center{
      width: 100%;
      height: 45px;
      text-align: center;
      line-height: 45px;
      font-size: 15px;
    }
  }
  .order-main{
    width: 100%;
    padding: 3%;
    box-sizing: border-box;
    .chose-address{
      width: 100%;
      height: 45px;
      background: url('../../assets/image/bgk.png') no-repeat 50%;
      background-size: cover;
      font-size: 16px;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 3%;
      box-sizing: border-box;
    }
    .get-address{
      width: 100%;
      height: 80px;
      background: #fff;
      display: flex;
      padding: 3%;
      box-sizing: border-box;
      align-items: center;
      .left{
        width: 100%;
        height: 80px;
        font-size: 18px;
        display: flex;
        padding: 3%;
        box-sizing: border-box;
        .left-address{
          width: 100%;
          margin-left: 20px;
          padding: 10px 0 0 0;
          box-sizing: border-box;
          p:nth-child(1){
            font-size: 13px;
          }
          p:nth-child(2){
            color: #aaa;
            font-size: 13px;
            margin-top: 10px;
          }
        }
      }
    }
    .chose{
      margin-top: 20px;
      width: 100%;
      height: 20px;
      font-size: 14px;
      padding: 0 3%;
      box-sizing: border-box;
    }
    .product{
      width: 100%;
      height: 100px;
      background: #fff;
      margin-top: 20px;
      display: flex;
      .left{
        width: 35px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .right{
        width: 100%;
        height: 100px;
        align-items: center;
        display: flex;
        img{
          height: 60px;
          width: 60px;
          margin: 0 15px;
        }
        .info{
          width: 100%;
          height: 100px;
          padding: 3%;
          box-sizing: border-box;
          p:nth-child(1){
           font-size: 14px;
            color: #000;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -moz-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          p:nth-child(2){
            height: 20px;
            margin-top: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            .money{
              font-size: 15px;
              color: #002FFF;
            }
          }
        }
      }
    }
    .product-info{
      width: 100%;
      min-height: 100px;
      border-radius: 5px;
      margin-top: 20px;
      background: #fff;
      padding: 3%;
      box-sizing: border-box;
      .label{
        font-size: 12px;
      }
      .right{
        font-size: 12px;
      }
    }
  }
  .safe{
    width: 100%;
    height: 60px;
  }
  .submit-bottom{
    height: 60px;
    background: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
    box-sizing: border-box;
    span{
      font-size: 16px;
      b{
        color: #002FFF;
      }
    }
    button{
      width: 100px;
      height: 35px;
      border: none;
      background: #002FFF;
      color: #fff;
      font-size: 14px;
      border-radius: 5px;
    }
  }
}
</style>
